package com.wesley.service;

import com.wesley.dao.AdminDao;
import com.wesley.entity.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * created by wei xin on 2020/3/3 0003
 */

@Service
public class AdminService {

    @Autowired
    private AdminDao adminDao;


    @Transactional
    public void saveAdmin(){
        adminDao.save(new Admin("11111"));
    }


}
